package com.betterjr.modules.risk.api.dubbo;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.betterjr.common.web.AjaxRemoteApiParam;
import com.betterjr.modules.risk.api.IRemoteApiService;
import com.betterjr.modules.risk.api.factory.RemoteApiInvokeFactory;

@Service(interfaceClass = IRemoteApiService.class)
public class RemoteApiDubboService implements IRemoteApiService {

    @Autowired
    private RemoteApiInvokeFactory factory;

    @Override
    public String operatorAgreement(AjaxRemoteApiParam param) {

        return factory.invokeApi(param);
    }

}
